import React from 'react';
import './index.less';

class ToDoListTitle extends React.Component {

  render() {
    const {listTitle,count} = this.props;
    return (
            <div className='center-count'>
              <h3>{listTitle == null ? '正在进行' : listTitle}</h3>
              <span className='count-span'>{count == null ? 0 : count}</span>
            </div>
    );
  }
}

export default ToDoListTitle;
